import time

import requests
dc_url = "https://sso.kongzhong.com/ajaxLogin?j=j&&type=1&service=https://passport.kongzhong.com/&username=123%40qq.com&password=313dd26600c6041713f4&vcode=&toSave=0&_=1650724963885"
heards = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.88 Safari/537.36"
    ,"Referer": "https://passport.kongzhong.com/"
}
import re
dc = re.findall('"dc":"(.*?)"', requests.get(url=dc_url, headers=heards).text)[0]

import execjs

node = execjs.get()

ctx = node.compile(open('./文件/空中网.js', encoding='utf-8').read())

funcName = 'getPwd("{0}", "{1}")'.format("121333", dc)

pwd = ctx.eval(funcName)

print(pwd)